package com.xinyue.design.template;

public class Client {
	
	public static void main(String[] args) {
		Profit pfc = new ProfitCar(100, 20000, 80, 30000, 18000);
		Profit pfb = new ProfitBicycle(100, 3000, 80, 3800, 3200);
		
		System.out.println("汽车利润：     " + pfc.getProfit());
		System.out.println("自行车利润：" + pfb.getProfit());
		System.out.println("汽车总支出：     " + pfc.getCost());
		System.out.println("自行车总支出：" + pfb.getCost());
		System.out.println("汽车利润率：     " + pfc.getPercentage());
		System.out.println("自行车利润率：" + pfb.getPercentage());
	}
}
